'''
Created on 22/06/2012

@author: Amy
'''
import wmi

class Computer(object):
    def __init__(self, hostname):
        self.HostName = hostname
        self._isOnline = False
        self._status = None
        self._listIndex = None
        self._smsClient = None
    
    def getHostName(self):
        return self.HostName
    
    def setListIndex(self, index):
        self._listIndex = index
        
    def getListIndex(self):
        return self._listIndex
    
    def IsOnline(self):
        return self._isOnline
    
    def setStatus(self, state):
        self._status = state
    
    def getStatus(self):
        return self._status
    
    def SMSClient(self):
        if not self._smsClient:
            self._smsClient = SMSClient(self.HostName)
        return self._smsClient
    
class SMSClient(object):
    def __init__(self, hostname):
        self.HostName = hostname
        
    def getPing(self):
        return True
    
    def getCurrentUser(self):
        return True
    
    def WMI(self):
        return wmi.WMI()